/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package briefkeys;

import java.sql.*;

/**
 *
 * @author KC Marie
 */
public class Connector {
    public static Connection ConnectDB()  {
        try  {
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        String conStr;
            conStr = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=C:\\Users\\user\\briefkeys\\Accounts.accdb;";
        Connection con = DriverManager.getConnection(conStr);
                return con;
                }
        catch(Exception e) {
        }
        return null;
        }
    }

